<!DOCTYPE html>                                             
<html lang="en" class="height-none"
<?php
//header('Pragma: public');
//header('Cache-Control: max-age=99999999');
//header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 86400));
if (isset(Controller::$pageData['pageType']) && ( Controller::$pageData['pageType'] == 'category' || Controller::$pageData['pageType'] == 'brand' || Controller::$pageData['pageType'] == 'model' )) {
    echo ' prefix="ya: http://webmaster.yandex.ru/vocabularies/" ';
}
?>
      >
          <?php
          $aPath = Yii::app()->theme->baseUrl . '/assets/';

          $module = Yii::app()->controller->module->id;
          $cont = Yii::app()->controller->id;
          $action = Yii::app()->controller->action->id;
          $isIndex = $is404 = false;

          if ($module == "main" && $cont == "main" && $action == "index") {
              $isIndex = true;
          } else if ($module == "main" && $cont == "main" && $action == "error") {
              $is404 = true;
          }
          ?>
    <head>
        <?php if (Controller::$pageData['pageId'] == 361): ?>
            <!-- Google Analytics Content Experiment code -->
            <script>function utmx_section() {
                }
                function utmx() {
                }
                (function () {
                    var
                            k = '37577788-1', d = document, l = d.location, c = d.cookie;
                    if (l.search.indexOf('utm_expid=' + k) > 0)
                        return;
                    function f(n) {
                        if (c) {
                            var i = c.indexOf(n + '=');
                            if (i > -1) {
                                var j = c.indexOf(';', i);
                                return escape(c.substring(i + n.length + 1, j < 0 ? c.
                                        length : j))
                            }
                        }
                    }
                    var x = f('__utmx'), xx = f('__utmxx'), h = l.hash;
                    d.write(
                            '<sc' + 'ript src="' + 'http' + (l.protocol == 'https:' ? 's://ssl' :
                                    '://www') + '.google-analytics.com/ga_exp.js?' + 'utmxkey=' + k +
                            '&utmx=' + (x ? x : '') + '&utmxx=' + (xx ? xx : '') + '&utmxtime=' + new Date().
                            valueOf() + (h ? '&utmxhash=' + escape(h.substr(1)) : '') +
                            '" type="text/javascript" charset="utf-8"><\/sc' + 'ript>')
                })();</script><script>utmx('url', 'A/B');</script>
            <!-- End of Google Analytics Content Experiment code -->
        <?php endif; ?>
        <?php if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'category'): ?>
            <!--Yandex.Острова: OpenGraph мета-свойства-->
            <meta property="ya:interaction" content="XML_FORM" />
            <meta property="ya:interaction:url" content="http://mobi03.ru/uploads/yaOstrova/sitemap.xml" />
            <meta property="ya:interaction:property" content="category" />
            <meta property="ya:interaction:property:default_value" content="<?php echo Controller::$pageData['pageUrl']; ?>" />
            <!--Yandex.Острова: OpenGraph мета-свойства-->
        <?php endif; ?>
        <?php
        if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'brand'):
            $category = explode("/", Controller::$pageData['pageUrl']);
            $yabrand = $category[1];
            $yacategory = $category[0];
            ?>
            <!--Yandex.Острова: OpenGraph мета-свойства-->
            <meta property="ya:interaction" content="XML_FORM" />
            <meta property="ya:interaction:url" content="http://mobi03.ru/uploads/yaOstrova/sitemap.xml" />
            <meta property="ya:interaction:property" content="category" />
            <meta property="ya:interaction:property:default_value" content="<?php echo $yacategory; ?>" />
            <meta property="ya:interaction:property" content="brand" />
            <meta property="ya:interaction:property:default_value" content="<?php echo $yabrand; ?>" />
            <!--Yandex.Острова: OpenGraph мета-свойства-->
        <?php endif; ?>
        <?php
        if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'model'):
            $category = explode("/", Controller::$pageData['pageUrl']);
            $yamodel = $category[2];
            $yabrand = $category[1];
            $yacategory = $category[0];
            ?>
            <!--Yandex.Острова: OpenGraph мета-свойства-->
            <meta property="ya:interaction" content="XML_FORM" />
            <meta property="ya:interaction:url" content="http://mobi03.ru/uploads/yaOstrova/sitemap.xml" />
            <meta property="ya:interaction:property" content="category" />
            <meta property="ya:interaction:property:default_value" content="<?php echo $yacategory; ?>" />
            <meta property="ya:interaction:property" content="brand" />
            <meta property="ya:interaction:property:default_value" content="<?php echo $yabrand; ?>" />
            <meta property="ya:interaction:property" content="model" />
            <meta property="ya:interaction:property:default_value" content="<?php echo $yamodel; ?>" />				
            <!--Yandex.Острова: OpenGraph мета-свойства-->
        <?php endif; ?>

        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <?php
        $pgs = array('/', 'remont-telefonov', 'remont-noutbukov');
        if (Yii::app()->request->pathInfo == 'remont-telefonov' || Yii::app()->request->pathInfo == 'remont-noutbukov')
            echo '<link rel="canonical" href="http://mobi03.ru/" />';
        ?>
        <meta content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=0" name="viewport">
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <!--		<meta name="author" content="Brander" />
                        <meta name="description" content="" /> 
                        <meta name="keywords" content="" /> -->

        <?php if (isset($_GET['page'])) echo '<link rel="canonical" href="' . Yii::app()->request->hostInfo . '/' . Yii::app()->request->pathInfo . '" />'; ?>

        <link rel="stylesheet" href="<?php echo $aPath; ?>css/main.css" media="all"/>
        <link rel="stylesheet" href="<?php echo $aPath; ?>css/select2.css" media="all"/>
        <!--[if IE 8]><link href="/themes/front/assets/css/ie8.css" rel="stylesheet" type="text/css" media="all"/><![endif]-->
        <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
        <link href="<?php echo $aPath; ?>favicon.gif" rel="shortcut icon"/>

        <?php if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'model'): ?>
            <script type="text/javascript" src="http://userapi.com/js/api/openapi.js"></script>
            <script>
                    (function (d, s, id)
                    {
                        var js, fjs = d.getElementsByTagName(s)[0];
                        if (d.getElementById(id))
                            return;
                        js = d.createElement(s);
                        js.id = id;
                        js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
                        fjs.parentNode.insertBefore(js, fjs);
                    }(document, "script", "facebook-jssdk"));</script>
            <script src="<?php echo $aPath; ?>js/social-likes.min.js"></script>
            <link rel="stylesheet" href="<?php echo $aPath; ?>css/social-likes_classic.css" media="all"/>
        <?php endif; ?>

        <?php if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'contact'): ?>
            <script src="http://api-maps.yandex.ru/1.1/?key=ADLvRE0BAAAAjpCfAwIAn8ulq__SeDI2FoY7X4le7EqiyIcAAAAAAAAAAABxa4YcNmmNeGsvo5Vb3Bgx6Q7KYQ==&modules=pmap&wizard=constructor" type="text/javascript"></script>
            <script type="text/javascript">
                    function createObject(type, point, style, description)
                    {
                        var allowObjects = ["Placemark", "Polyline", "Polygon"],
                                index = YMaps.jQuery.inArray(type, allowObjects),
                                constructor = allowObjects[(index == -1) ? 0 : index];
                        description = description || "";
                        var object = new YMaps[constructor](point, {style: style, hasBalloon: !!description});
                        object.description = description;
                        return object;
                    }
            </script>			
        <?php endif; ?>
        <script type="text/javascript">
            //*Google analitics
            var _gaq = _gaq || [];
            var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
            _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
            _gaq.push(['_setAccount', 'UA-18955957-1']);
            //_gaq.push(['_setAccount', 'UA-18955957-2']);

            _gaq.push(['_addIgnoredOrganic', 'mobi03.ru']);
            _gaq.push(['_addIgnoredOrganic', 'mobi03']);
            _gaq.push(['_addOrganic', 'images.yandex.ru', 'q', true]);
            _gaq.push(['_addOrganic', 'blogsearch.google.ru', 'q', true]);
            _gaq.push(['_addOrganic', 'blogs.yandex.ru', 'text', true]);
            _gaq.push(['_addOrganic', 'go.mail.ru', 'q']);
            _gaq.push(['_addOrganic', 'nova.rambler.ru', 'query']);
            _gaq.push(['_addOrganic', 'nigma.ru', 's']);
            _gaq.push(['_addOrganic', 'webalta.ru', 'q']);
            _gaq.push(['_addOrganic', 'aport.ru', 'r']);
            _gaq.push(['_addOrganic', 'poisk.ru', 'text']);
            _gaq.push(['_addOrganic', 'km.ru', 'sq']);
            _gaq.push(['_addOrganic', 'liveinternet.ru', 'ask']);
            _gaq.push(['_addOrganic', 'quintura.ru', 'request']);
            _gaq.push(['_addOrganic', 'search.qip.ru', 'query']);
            _gaq.push(['_addOrganic', 'gde.ru', 'keywords']);
            _gaq.push(['_addOrganic', 'gogo.ru', 'q']);
            _gaq.push(['_addOrganic', 'ru.yahoo.com', 'p']);
            _gaq.push(['_addOrganic', 'akavita.by', 'z']);
            _gaq.push(['_addOrganic', 'tut.by', 'query']);
            _gaq.push(['_addOrganic', 'all.by', 'query']);
            _gaq.push(['_addOrganic', 'meta.ua', 'q']);
            _gaq.push(['_addOrganic', 'bigmir.net', 'q']);
            _gaq.push(['_addOrganic', 'i.ua', 'q']);
            _gaq.push(['_addOrganic', 'online.ua', 'q']);
            _gaq.push(['_addOrganic', 'a.ua', 's']);
            _gaq.push(['_addOrganic', 'ukr.net', 'search_query']);
            _gaq.push(['_addOrganic', 'search.com.ua', 'q']);
            _gaq.push(['_addOrganic', 'search.ua', 'query']);
            _gaq.push(['_addOrganic', 'search.ukr.net', 'search_query']);
            // ЕСЛИ 404 _gaq.push(['_trackPageview', '/404.html?page=' + document.location.pathname + document.location.search + '&from;=' + document.referrer + '&etype;=missingcategory']);

            // ЕСЛИ НОРМАЛЬНО
            _gaq.push(['_trackPageview']);
            (function () {
                var ga = document.createElement('script');
                ga.type = 'text/javascript';
                ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0];
                s.parentNode.insertBefore(ga, s);
            })();
            //*/

        </script>		
        <?php
        if (isset(Controller::$pageData['sysHeaders']) && !empty(Controller::$pageData['sysHeaders'])) {
            echo '<script>' . Controller::$pageData['sysHeaders'] . '</script>';
        }
        ?>
    </head>

    <?php
    if ($isIndex)
        $class = 'class="main-page"';
    else if ($is404)
        $class = 'class="error-page"';
    else
        $class = '';
    ?>
    <body <?php echo $class; ?>>
        <!-- Yandex.Metrika counter -->
        <script type="text/javascript">
            (function (d, w, c) {
                (w[c] = w[c] || []).push(function () {
                    try {
                        w.yaCounter1763395 = new Ya.Metrika({id: 1763395, enableAll: true, ut: "noindex", webvisor: true});
                    } catch (e) {
                    }
                });
                var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () {
                    n.parentNode.insertBefore(s, n);
                };
                s.type = "text/javascript";
                s.async = true;
                s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
                if (w.opera == "[object Opera]") {
                    d.addEventListener("DOMContentLoaded", f);
                } else {
                    f();
                }
            })(document, window, "yandex_metrika_callbacks");</script>
        <noscript>
        <div>
            <img src="//mc.yandex.ru/watch/1763395?ut=noindex" style="position:absolute; left:-9999px;" alt="" />
        </div>
        </noscript>
        <!-- /Yandex.Metrika counter -->


        <!-- wrapper Start -->
        <div class="wrapper">
            <!-- header Start -->
            <?php if ($this->beginCache('Header', array('duration' => 3600))) { ?>
                <?php $this->widget("application.modules.main.widgets.Header"); ?>
                <?php
                $this->endCache();
            }
            ?>
            <!-- header end -->
            <!--
                        <noindex>
                            <div class="timetable">
                                <div class="widget callme">
                                    <strong>
                                        В Новом Году желаем Вам успехов, благополучия и процветания. Спасибо Вам за проявленное к нам доверие. <br> 
                                        Отдел продаж работает с 2 января. Звоните!
                                        <a style="color: #E73400;" href="/news/rezhim-raboty-servisnyh-centrov-7-yanvarya">
                                            Режим работы филиалов в праздники
                                        </a> 
                                    </strong>
                                    
                                    <div style="display: block; float: left; position: relative; margin-top: -36px;"><img width="50" src="<?php echo $aPath; ?>images/christmas-tree7.png"></div>
                                </div> 
                            </div>
                        </noindex>
            <?php if ($isIndex): ?>
                                                                                                                                                        <style>
                                                                                                                                                            .timetable {      
                                                                                                                                                                display: block;
                                                                                                                                                                font-size: 16px;
                                                                                                                                                                margin: -25px auto 70px;
                                                                                                                                                                max-width: 1400px;
                                                                                                                                                                padding: 0 4px;
                                                                                                                                                                position: relative;
                                                                                                                                                                text-align: center;
                                                                                                                                                            }
                                                                                                                                                        </style>
            <?php else: ?>
                                                                                                                                                        <style>
                                                                                                                                                            .timetable { 
                                                                                                                                                                display: block;
                                                                                                                                                                font-size: 16px;
                                                                                                                                                                margin: -59px auto 70px;
                                                                                                                                                                max-width: 1400px;
                                                                                                                                                                padding: 0 4px;
                                                                                                                                                                position: relative;
                                                                                                                                                                text-align: center;
                                                                                                                                                            }
                                                                                                                                                        </style>
            <?php endif; ?>
            
                        <br>-->
            <?php if ($isIndex) $this->widget("application.modules.main.widgets.Slider"); ?>
            <!-- page Start -->
            <div class="page">

                <?php if (!$is404): ?>
                    <div class="selected-content">
                        <div class="selected-content__inner">
                            <div class="selected-content__inner__wrap">
                                <?php $this->widget("application.modules.main.widgets.topPanel"); ?>
                                <?php
                                if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'model') {  //ВЕРХНИЕ СЕО ЛИНКИ  
                                    mTools::getSeoLinks(Controller::$pageData['pageId']);
                                    if (isset(Controller::$pageData['seoLinks']['top'])) {
                                        echo '<div class="notify"><p>' . Controller::$pageData['seoLinks']['top'][0]['linkContent'] . '</p></div>';
                                    }
                                }
                                ?>

                                <?php
                                if (!$isIndex) {
                                    if ($this->beginCache('Breadcrumbs', array('duration' => 3600))) {
                                        $this->widget('application.modules.main.widgets.Breadcrumbs');

                                        $this->widget('application.modules.main.widgets.topSeoContent');
                                        if (Yii::app()->request->pathInfo != 'for-partners') {
                                            if (Controller::$pageData['pageUrl'] == 'status')
                                                $this->widget('application.modules.main.widgets.getStatus', array('modified' => 'modified'));
                                            elseif (Controller::$pageData['pageUrl'] == 'online-zakaz')
                                                $this->widget('application.modules.main.widgets.Online');
                                            elseif (Controller::$pageData['pageUrl'] != 'online-pay' && Controller::$pageData['pageUrl'] != 'vakansii')
                                                $this->widget('application.modules.main.widgets.onlineOrder', array('position' => 'top', 'modified' => 'modified'));
                                        }
                                        $this->endCache();
                                    }
                                }
                                ?>
                                <?php if ($isIndex): ?>
                                    <div class="selected-content__columns">
                                        <div class="selected-content__columns__inner">
                                            <div class="selected-content__columns__left">
                                                <?php
                                                if ($this->beginCache('mainText', array('duration' => 3600))) {
                                                    $this->widget("application.modules.main.widgets.mainText");
                                                    $this->endCache();
                                                }
                                                ?>
                                            </div> 
                                            <div class="selected-content__columns__right">
                                                <?php
                                                if ($this->beginCache('onlineOrder', array('duration' => 3600))) {
                                                    $this->widget("application.modules.main.widgets.fastBuyService");
                                                    $this->endCache();
                                                }
                                                ?>
                                                <style>
                                                    .selected-content__columns__right .callme {
                                                        border: 3px dashed #fff;
                                                    }
                                                </style>
                                                <?php
                                                if ($this->beginCache('cityContacts', array('duration' => 3600))) {
                                                    $this->widget("application.modules.main.widgets.cityContacts");
                                                    $this->endCache();
                                                }
                                                ?>
                                            </div>  
                                        </div>     
                                    </div> 
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>
                <?php
                $block = $this->widget('application.modules.main.widgets.layoutBlocks', array('block' => 'inner_sidebar'), TRUE);
                if (!$isIndex && !$is404):
                    ?>


                    <div class="page__inner <?php //echo (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'model' ? 'changing-positions' : '')                                                           ?>">

                        <section class="main-content <?php echo empty($block) ? 'wide' : '' ?>">
                            <div class="main-content__inner">
                                <?php echo $content; ?>
                                <?php
                                if ($this->beginCache('content_bottom', array('duration' => 3600))) {
                                    if (!mb_substr_count(Controller::$pageData['pageUrl'], 'remont-kompyuterov'))
                                        $this->widget('application.modules.main.widgets.layoutBlocks', array('block' => 'content_bottom'));

                                    $this->endCache();
                                }
                                ?>
                            </div>
                        </section>
                        <?php
                        if (!empty($block)) {
                            if ($this->beginCache('sidebar', array('duration' => 3600))) {
                                echo '<aside class="sidebar">';
//                                                        $this->widget('application.modules.main.widgets.onlineOrder', array('position' => 'right'));
                                if (Controller::$pageData['pageUrl'] != 'status' && !mb_substr_count(Controller::$pageData['pageUrl'], 'vakansii') && Controller::$pageData['pageUrl'] != 'dlya-postavshikov' && Yii::app()->request->pathInfo != 'for-partners') {
                                    if (Yii::app()->request->pathInfo != 'remont-kompyuterov') {
                                        $this->widget('application.modules.main.widgets.otherContacts');
                                        $this->widget('application.modules.main.widgets.cityContacts');
                                    }


                                    /*
                                      if (Controller::$pageData['pageUrl'] == 'otzivi')
                                      $this->widget('application.modules.main.widgets.YandexReviewAdd');
                                     */
                                    //if (date('w') >= 5)
                                    //$this->widget('application.modules.main.widgets.blackFriday');
                                    if (!mb_substr_count(Controller::$pageData['pageUrl'], 'remont-kompyuterov') && Controller::$pageData['pageType'] != 'model')
                                        $this->widget('application.modules.main.widgets.fastBuyService');


                                    $this->widget('application.modules.main.widgets.Call');


                                    if (Controller::$pageData['pageType'] == 'model')
                                        $this->widget('application.modules.main.widgets.Video');

                                    $this->widget('application.modules.main.widgets.PhotoGallery');
                                }
                                if (Controller::$pageData['pageUrl'] != 'vakansii')
                                    echo $block;
                                if (Yii::app()->request->pathInfo == 'remont-kompyuterov') {
                                    $this->widget('application.modules.main.widgets.otherContacts');
                                    $this->widget('application.modules.main.widgets.cityContacts');
                                }
                                echo '</aside>';
                                $this->endCache();
                            }
                        }
                        ?>
                    </div>
                <?php endif; ?>
                <?php if ($is404) echo $content; ?>
                <?php
//                if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'model') {
//                    $this->widget('application.modules.main.widgets.getRandomModels');
//                }
                ?>
                <?php
                $block = $this->widget('application.modules.main.widgets.layoutBlocks', array('block' => 'bottom_sidebar'), TRUE);
                if ($this->beginCache('bottom_sidebar', array('duration' => 3600))) {
                    if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'category') {
                        $pCategory = Controller::$pageData['pageUrl'];
                        $block .= $this->widget('application.modules.main.widgets.popularServices', array('category' => $pCategory), TRUE);
                    } else if (isset(Controller::$pageData['pageType']) && ( Controller::$pageData['pageType'] == 'brand' )) {
                        $pCategory = Controller::$pageData['_parents']['category']['pageUrl'];
                        $block .= $this->widget('application.modules.main.widgets.popularServices', array('category' => $pCategory), TRUE);
                    }
                    $this->endCache();
                }
                if (!$block)
                    $sectionColumn = ' one-column ';
                else
                    $sectionColumn = '';
                if (!$is404 && $this->id != 'qa'):
                    ?>
                    <?php if (( isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'model' ) || ( isset(Controller::$pageData['pageType']) && isset(Controller::$pageData['seoTextFull']) && !empty(Controller::$pageData['seoTextFull']) && !$isIndex && Controller::$pageData['pageUrl'] != 'otzivi' && Controller::$pageData['pageType'] != 'contact' )): ?>
                        <?php if ($this->beginCache('page__bottom', array('duration' => 3600))) { ?>        
                            <div class="page__bottom-content">
                                <div class="page__bottom-content__inner">
                                    <section class="main-content <?php echo $sectionColumn; ?>">
                                        <div class="main-content__inner">
                                            <?php if (isset(Controller::$pageData['seoTextFull']) && !empty(Controller::$pageData['seoTextFull'])) : ?>
                                                <div class="entry">
                                                    <?php echo Controller::$pageData['seoTextFull']; ?>
                                                </div>
                                            <?php endif; ?>
                                            <?php if (isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType'] == 'model' && isset(Controller::$pageData['seoLinks']['bottom'])): //НИЖНИЕ СЕО ЛИНКИ       ?>
                                                <nav class="page-navi augmented">
                                                    <ul>
                                                        <?php
                                                        foreach (Controller::$pageData['seoLinks']['bottom'] as $key => $link) {
                                                            $class = "";
                                                            if ($key == 0)
                                                                $class = "prev";
                                                            else
                                                                $class = "next";
                                                            echo '<li class="page-navi__' . $class . '"><span>' . $link['linkContent'] . '</span></li>';
                                                        }
                                                        ?>
                                                    </ul>
                                                </nav>
                                            <?php endif; ?>

                                        </div>
                                    </section>
                                    <?php
                                    if ($block) {
                                        echo '<aside class="sidebar">';
                                        echo $block;
                                        echo '</aside>';
                                    }
                                    ?>
                                </div>
                            </div>
                            <?php
                            $this->endCache();
                        }
                        ?>
                    <?php endif; ?>
                    <?php
                    if ($isIndex)
                        if ($this->beginCache('sliderTabs', array('duration' => 3600))) {
                            $this->widget("application.modules.main.widgets.sliderTabs");
                            $this->endCache();
                        }
                    ?>

                    <div id="phones"><?php if ($isIndex) $this->widget('application.modules.main.widgets.topBrands_phones'); ?></div>

                    <div id="noutbook" style="display: none"><?php if ($isIndex) $this->widget('application.modules.main.widgets.topBrands_notebooks'); ?></div>        

                    <?php
                    if (Controller::$pageData['pageType'] != 'model' && Controller::$pageData['pageType'] != 'category' && Controller::$pageData['pageType'] != 'brand') {
                        echo '<br />';
                        if ($this->beginCache('lastNews', array('duration' => 3600))) {
                            $this->widget("application.modules.main.widgets.lastNews");
                            $this->endCache();
                        }
                    }
                    ?>
                    <?php if ($isIndex): ?><div style="max-width: 1400px; margin: 0 auto;"><?php $this->widget('application.modules.main.widgets.PhotoGallery', array('float' => 'bottom')); ?></div><?php endif; ?>
                    <?php if (Controller::$pageData['pageUrl'] != 'status'): ?>
                        <div class="application-form-wrap">
                            <noindex>
                                <?php $this->widget('application.modules.main.widgets.onlineOrder', array('position' => 'bottom', 'modified' => 'modified')); ?>
                            </noindex>
                        </div>
                    <?php endif; ?>

                <?php endif; ?>
            </div>
            <!-- page end -->

            <!-- footer Start -->
            <footer class="footer">
                <div class="footer__inner">
                    <noindex>
                        <div class="footer__right-column">
                            <dl>
                                <dt>Ваш город:</dt>
                                <dd>
                                    <a href="#your-city-popup" class="fancybox"><span id="footer_region_title"><?php echo Yii::app()->getModule('main')->userRegion['city']; ?></span></a>
                                </dd> 
                            </dl>
                            <ul class="phone-list">
                                <li>
                                    <?php
                                    $ph = preg_replace('/\D/', '', Yii::app()->params['regions'][Yii::app()->session['userRegion']['id']]['tel']);
                                    $cl = '';
                                    if (Yii::app()->session['userRegion']['id'] == 1) {
                                        $cl = 'ya-phone';
                                    }
                                    if (Yii::app()->session['userRegion']['id'] == 2) {
                                        $cl = 'ya-phone-spb';
                                    }
                                    if (Yii::app()->session['userRegion']['id'] == 6) {
                                        $cl = 'ya-phone-kzn';
                                    }
                                    ?>
                                    <a class="<?php echo $cl; ?>" href="tel:<?php echo preg_replace('/\D/', '', Yii::app()->params['regions'][Yii::app()->session['userRegion']['id']]['tel']); ?>"><?php echo Yii::app()->params['regions'][Yii::app()->session['userRegion']['id']]['tel']; ?></a>
                                </li>
                                <?php if (isset(Yii::app()->params['regions'][Yii::app()->session['userRegion']['id']]['tel2'])): ?>
                                    <?php
                                    $ph = preg_replace('/\D/', '', Yii::app()->params['regions'][Yii::app()->session['userRegion']['id']]['tel2']);
                                    $cl = '';
                                    if (Yii::app()->session['userRegion']['id'] == 1) {
                                        $cl = 'ya-phone';
                                    }
                                    if (Yii::app()->session['userRegion']['id'] == 2) {
                                        $cl = 'ya-phone-spb';
                                    }
                                    if (Yii::app()->session['userRegion']['id'] == 6) {
                                        $cl = 'ya-phone-kzn';
                                    }
                                    ?>
                                    <li>
                                        <a class="<?php echo $cl; ?>" href="tel:<?php echo $ph; ?>"><?php echo Yii::app()->params['regions'][Yii::app()->session['userRegion']['id']]['tel2']; ?></a>
                                    </li>
                                <?php endif; ?>
                            </ul>
                            <span class="call-me">
                                <a class="fancybox fancybox.ajax" href="/main/ajax/loadForm?formName=contacts_1&modelName=RequestForm&pageUrl=<?php echo urlencode(Controller::$pageData['pageUrl']); ?>&pageTitle=<?php echo urlencode($this->pageTitle); ?>">Перезвоните мне</a>
                            </span>    
                        </div>
                    </noindex>
                    <div class="footer__left-column">
                        <div class="footer__left-column__left">
                            <p class="footer__service-center">Федеральный сервис-центр <span>«Mobi03.ru»</span></p>
                            <div class="rating_rate">
                                <div class="rate">
                                    <?php
                                    echo '&copy 2006 - ' . date("Y", time());

                                    /* $this->widget( 'CStarRating', array(
                                      'name' => 'siteRatind',
                                      'value' => 4,
                                      'minRating' => 1,
                                      'maxRating' => 5,
                                      'starCount' => 5,
                                      'allowEmpty' => false,
                                      'callback'=>'		function()
                                      {
                                      $.ajax({
                                      type: "POST",
                                      url: "/main/ajax/rating",
                                      data: "type=site&ratingId=1&rate=" + $(this).val(),
                                      success:	function(msg)
                                      {
                                      mobi03.showMessage("Поздравляем!", "Спасибо, Ваш отзыв успешно отправлен!");
                                      }
                                      });
                                      }',
                                      ) ); */
                                    ?>								
                                </div>&nbsp;
                                <!-- <span class="rating__number">5 / 128421</span> -->
                            </div> 
                            <span class="write">
                                <a href="/main/ajax/loadForm?formName=message&modelName=WriteDirectorForm" class="fancybox fancybox.ajax">Написать ген. директору</a>
                            </span> 
                            <!--
                            <span class="yandex-value">
                                <a href="http://clck.yandex.ru/redir/dtype=stred/pid=47/cid=1248/*http://market.yandex.ru/shop/102286/reviews/add"><img src="http://clck.yandex.ru/redir/dtype=stred/pid=47/cid=1248/*http://img.yandex.ru/market/informer3.png" border="0" alt="Оцените качество магазина на Яндекс.Маркете." /></a>
                            </span>
                            -->
                        </div>
                        <noindex>
                            <div class="footer__left-column__right">
                                <ul class="footer__social-list">
                                    <li class="facebook">
                                        <a target="_blank" href="https://www.facebook.com/pages/Mobi03/1408466689397505?ref=hl">
                                            <span>facebook</span>
                                        </a>
                                    </li>
                                    <li class="twitter">
                                        <a target="_blank" href="https://twitter.com/mobi03_ru">
                                            <span>twitter</span>
                                        </a>
                                    </li>
                                    <li class="in-contact">
                                        <a target="_blank"  href="http://vk.com/mobi03_ru">
                                            <span>in contact</span>
                                        </a>
                                    </li>
                                    <li class="google">
                                        <a target="_blank"  href="https://plus.google.com/u/0/104794744267388762078" rel="publisher" >
                                            <span>Google+</span>
                                        </a>
                                    </li>

                                </ul>
                            </div>

                            <div class="footer__left-column__center">
                                <nav class="footer__navi">

                                    <ul>
                                        <li>
                                            <a href="/company">О компании</a>
                                        </li>
                                        <li>
                                            <a href="/otzivi">Отзывы клиентов</a>
                                        </li>
                                        <li>
                                            <a href="/news">Новости</a>
                                        </li>
                                        <li>
                                            <a href="/vakansii">Вакансии</a>
                                        </li>

                                        <li>
                                            <a href="/remontiruem-sami">Статьи</a>
                                        </li>

                                        <li>
                                            <a href="/kontakty">Контакты</a>
                                        </li>
                                        <!--                                        <li>
                                                                                    <a onclick="window.location.href = '/dlya-postavshikov#en';" href="#">For suppliers</a>
                                                                                </li>-->
                                        <li>
                                            <a href="/for-partners">Партнерам</a>
                                        </li>
                                        <!--                                        <li>
                                                                                    <a href="/dlya-postavshikov">Для поставщиков</a>
                                                                                </li>-->
                                    </ul>
                                </nav>
                            </div>
                        </noindex>
                    </div>
                </div>
            </footer>

            <script>                                 $(function ()
                {


                    $('div.your-city-popup').on("click", "a>span", function ()
                    {
                        var pli = $(this).parents('li');
                        if (pli.hasClass("selected"))
                        {
                            $(this).parents('div.fancybox-skin').find('.fancybox-close').trigger("click");
                            return false;
                        }
                        var regionId = $(this).data("id");
                        var regionTitle = $(this).html();
                        $('span.header__top-panel__left__address>a').html($(this).html());
                        $('span#footer_region_title').html(regionTitle);
                        $.ajax({
                            url: '/main/ajax/setRegion',
                            type: 'post',
                            data: {regionId: regionId},
                            success: function (data)
                            {
                                data = JSON.parse(data);
                                mobi03.setUData({'userRegion': {'title': regionTitle, 'id': regionId}});
                                if (regionId == 1 && data.firstTime == 'yes')
                                {

                                } else
                                {
                                    location.reload();
                                }
                            }
                        });
                        $('div.your-city-popup').parents('div.fancybox-opened').find('.fancybox-close').trigger("click");
                        return false;
                    });
                });</script> 



            <!--			<div id="liveTexButton_47061"></div>-->
            <!-- footer end -->
        </div>



        <!-- wrapper end -->
        <!-- jQuery Plugin scripts -->
        <script type="text/javascript" src="<?php echo $aPath; ?>js/select2.min.js"></script>
        <script type="text/javascript" src="<?php echo $aPath; ?>js/jquery.easing.1.3.min.js"></script>
        <script type="text/javascript" src="<?php echo $aPath; ?>js/jquery.mousewheel.js"></script>
        <!-- jQuery scripts -->
        <script type="text/javascript" src="<?php echo $aPath; ?>js/jquery.sliderkit.1.9.2.pack.js"></script>
        <script type="text/javascript" src="<?php echo $aPath; ?>js/owl.carousel.js"></script>
        <script type="text/javascript" src="<?php echo $aPath; ?>js/jquery.fancybox.js?v=2.1.5"></script>
        <!--<script type="text/javascript" src="<?php echo $aPath; ?>js/placeholder.js"></script>-->
        <?php if (!$is404): ?>
            <!-- App modules -->
            <script type="text/javascript" src="<?php echo $aPath; ?>js/module.audio-player.js"></script>
        <?php endif; ?>
        <!-- App initializations  -->
        <script type="text/javascript" src="<?php echo $aPath; ?>js/scripts.js"></script>

        <?php
        if (Yii::app()->user->hasFlash('success')):
            $mess = Yii::app()->user->getFlash('success');
            ?>
            <script>
                $(document).ready(function () {
                    mobi03.showMessage('<?php echo $mess[0] ?>', '<?php echo $mess[1]; ?>');
                });</script>
        <?php endif; ?>

        <script>
            $(document).ready(function () {
                $('#city').bind('focus', function () {

                    $(this).data("autocomplete").search($(this).val());
                    //$(this).trigger('keyup');
                });
            });
<?php
$tt = '';
$dc = '';
$sONSHOW = '';
$sONSEND = '';
$actionUrl = '';
if (Controller::$pageData['pageType'] == 'category') {
    $sONSHOW = '_gaq.push(["_trackEvent", "category-callback-request-show", "77777777", window.location.href]);';
    $sONSEND = '_gaq.push(["_trackEvent", "category-callback-request-send", $("#test-022").attr("value"), window.location.href]);';
    $cTitle = '';

    foreach (Yii::app()->params['categories'] as $menuT) {
        if ($menuT['pageId'] == Controller::$pageData['pageId']) {
            $cTitle = $menuT['menuTitle'];
        }
    }
    $actionUrl = '&tip=' . urlencode(Controller::$pageData['pageTitle']);
    $tt = 'Мы ремонтируем и обслуживаем ' . mb_strtolower($cTitle, 'utf-8');
    $dc = 'Если у вас возникли вопросы, отправьте нам номер телефона и оператор свяжется с вами в течение 5 минут.';
} elseif (Controller::$pageData['pageType'] == 'brand') {
    $sONSHOW = '_gaq.push(["_trackEvent", "brand-callback-request-show", "777777777", window.location.href]);';
    $sONSEND = '_gaq.push(["_trackEvent", "brand-callback-request-send", $("#test-022").attr("value"), window.location.href]);';
    $cTitle = '';
    $actionUrl = '&brand=' . urlencode(Controller::$pageData['pageTitle']) . '&tip=' . urlencode(Controller::$pageData['_parents']['category']['pageTitle']);
    foreach (Yii::app()->params['categories'] as $menuT) {
        if ($menuT['pageId'] == Controller::$pageData['_parents']['category']['pageId']) {
            $cTitle = $menuT['menuTitle'];
        }
    }
    $tt = 'Мы ремонтируем и обслуживаем ' . mb_strtolower($cTitle, 'utf-8') . ' ' . Controller::$pageData['pageTitle'];
    $dc = 'Если у вас возникли вопросы, отправьте нам номер телефона и оператор свяжется с вами в течение 5 минут.';
} elseif (Controller::$pageData['pageType'] == 'model') {
    $sONSHOW = '_gaq.push(["_trackEvent", "model-callback-request-show", "77777777", window.location.href]);';
    $sONSEND = '_gaq.push(["_trackEvent", "model-callback-request-send", $("#test-022").attr("value"), window.location.href]);';
    $mTitle = '';
    $actionUrl = '&brand=' . urlencode(Controller::$pageData['_parents']['brand']['pageTitle']) . '&tip=' . urlencode(Controller::$pageData['_parents']['category']['pageTitle']) . '&m=' . urlencode(Controller::$pageData['pageTitle']);
    $tt = 'Мы ремонтируем и обслуживаем ' . Controller::$pageData['_parents']['brand']['pageTitle'] . ' ' . Controller::$pageData['pageTitle'];
    $dc = 'Если у вас возникли вопросы, отправьте нам номер телефона и оператор свяжется с вами в течение 5 минут.';
}
$actionUrl = '?formName=contacts_2&modelName=RequestForm&pageTitle=' . urlencode(Controller::$pageData['pageTitle']) . '&pageUrl=' . urlencode(Controller::$pageData['pageUrl']) . '&title=' . urlencode($tt) . '&desc=' . urlencode($dc) . '&sc=' . urlencode($sONSEND) . $actionUrl;
?>
            function showForm() {
                $.fancybox({
//                width: 500,
//                height: 350,
//                autoSize: false,
                    href: '/main/ajax/loadForm<?php echo $actionUrl; ?>',
                    type: 'ajax'
                });
                localStorage.setItem("showForm", 1);
<?php echo $sONSHOW; ?>
            }
            function sec() {
                var uTime = 1;
                if (localStorage.getItem("userTime") === null) {
                    localStorage.setItem("userTime", parseInt(uTime));
                } else {
                    localStorage.setItem("userTime", parseInt(uTime) + parseInt(localStorage.getItem("userTime")));
                }
<?php if (in_array(Controller::$pageData['pageType'], array('category', 'brand', 'model'))): ?>
                    if (parseInt(localStorage.getItem("userTime")) > 60 && localStorage.getItem("showForm") === null) {
                        showForm();
                    }
<?php endif; ?>
            }
            var t = setInterval(sec, 1000);
<?php if (in_array(Controller::$pageData['pageType'], array('category', 'brand', 'model'))): ?>
                if (parseInt(localStorage.getItem("userTime")) > 60 && localStorage.getItem("showForm") === null) {
                    showForm();
                }
<?php endif; ?>
        </script>

        <?php $this->widget('application.modules.main.widgets.getScripts'); ?>
        <?php if (isset(Yii::app()->session['userRegion']['isNewVisitor']) && !empty(Yii::app()->session['userRegion']['isNewVisitor'])): ?>
            <script>
                $(document).ready(function ()
                {
                    //					$.post('/main/ajax/setRegion', {regionId: 1}, function(ret) {
                    //					});
                    //					$('.header__top-panel__left__address a').trigger('click');
                });</script>
        <?php endif; ?>
        <script>
            $(document).ready(function () {
                //                $('body').on('click', '#clbh_phone_div', function () {
                //                    alert();
                //                    $("body")
                //                            .off("click", "#clbh_phone_div", flash);
                //                    return false;
                //                });
                //                alert(window.location.hash);
                $.ajaxSetup({
                    data: {<?php echo Yii::app()->request->csrfTokenName; ?>: "<?php echo Yii::app()->request->csrfToken; ?>"}
                });
                $('form').each(function ()
                {
                    if ($(this).attr('action') != '/search')
                        $(this).append("<input type='hidden' name='user_fname'/>");
                });
            });</script>
        <style>
            .yandex-value {
                padding-top: 10px;
                display: block;
            }
        </style>

        <!-- BEGIN JIVOSITE CODE {literal} -->
        <script type='text/javascript'>
            (function () {
                var widget_id = 'ycLfSvIhkQ';
                var s = document.createElement('script');
                s.type = 'text/javascript';
                s.async = true;
                s.src = '//code.jivosite.com/script/widget/' + widget_id;
                var ss = document.getElementsByTagName('script')[0];
                ss.parentNode.insertBefore(s, ss);
            })();</script>

        <?php if (Controller::$pageData['pageId'] == 357): ?>
            <script type="text/javascript">(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=VRNjdT/z2Gz7h6VBeOL/iN9GYhITFKFDA0EQ0ZxDJjkXDkCkuxL7PwgIrHvt7Tivmxi/6ClbogeBAmsMGZX3ls4HS4TMU04eB85xt*M4ptJEZklDLTBEFuYwOW1V2sQZf5i2wXT7IGZH8BVAhN532W3v7aGj5s3Gcpuk0pSVjmQ-';</script>
        <?php endif; ?>

        <?php if (Controller::$pageData['pageId'] == 11926): ?>
            <script type="text/javascript">(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=wollmqwKOYu/scrQskX0cDQhfxQevgH8MRp1yko4RWS8ekt/*PErcxCz4/W*vBiYR8t2Sga8hHzxuWCZiYOBukfOcqZorijceb*yejYDyZDFC8HUsGd6duAFWSaoSnxQECvUmMpHuuYXSmUZ4VXd49UXWCC19FN5Eaduq1*3MaQ-';</script>
        <?php endif; ?>

        <?php if (Controller::$pageData['pageId'] == 3014): ?>
            <script type="text/javascript">(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=CAIRZe82167Xv6*9ihuiybfihdf96ychNlrwO9WYjBu0rj9JrsuupRwz2Gg3q6pTjZk4ljwCVPxKewLFjOWjt3qvVOOB2R9EzutIi27FvwHmtiCfkOmrKqsj5mb60kdoQ6HxKrGXS4v0ha5LOKGvYeys32es3aaiQ9UVdKNJD2I-';</script>
        <?php endif; ?>

        <script type="text/javascript">(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=wHGr8zIGVM2dY77BzLNzVvzGFZXNdvXJaU15qeZckLMG9QKWLz9GUpG3JbzrLFKDc8WgJvF8cBKtjaAB9X9ZgPQwJtZPmb7XUw3J7YeL*7LsOhYNaYnBT/eu6*uCDgOd1gsUJIwSW6rllL3ZB*XoM14JYx1xdttZUN/cDnFFyVo-';</script>

        <!-- {/literal} END JIVOSITE CODE -->
        <!--        <link rel="stylesheet" href="//cdn.callbackhunter.com/widget/tracker.css">
                <script type="text/javascript" 
                src="//cdn.callbackhunter.com/widget/tracker.js" charset="UTF-8"></script>
                <script type = "text/javascript"> var hunter_code = "f4b0a0fee64efb6dfbb3b1b417e18e88";</script>-->
        <!-- Google Code for &#1079;&#1074;&#1086;&#1085;&#1086;&#1082; &#1089; &#1084;&#1086;&#1073;&#1080;&#1083;&#1100;&#1085;&#1086;&#1075;&#1086; Conversion Page
In your html page, add the snippet and call
goog_report_conversion when someone clicks on the
phone number link or button. -->
        <script type="text/javascript">
            goog_snippet_vars = function () {
                var w = window;
                w.google_conversion_id = 956373091;
                w.google_conversion_label = "d9EBCO7RplsQ47CEyAM";
                w.google_remarketing_only = false;
            }
            // DO NOT CHANGE THE CODE BELOW.
            goog_report_conversion = function (url) {
                goog_snippet_vars();
                window.google_conversion_format = "3";
                window.google_is_call = true;
                var opt = new Object();
                opt.onload_callback = function () {
                    if (typeof (url) != 'undefined') {
                        window.location = url;
                    }
                }
                var conv_handler = window['google_trackConversion'];
                if (typeof (conv_handler) == 'function') {
                    conv_handler(opt);
                }
            }
        </script>
        <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion_async.js"></script>
        <!-- Код тега ремаркетинга Google -->
        <!--------------------------------------------------
        С помощью тега ремаркетинга запрещается собирать информацию, по которой можно идентифицировать личность пользователя. Также запрещается размещать тег на страницах с контентом деликатного характера. Подробнее об этих требованиях и о настройке тега читайте на странице http://google.com/ads/remarketingsetup.
        --------------------------------------------------->
        <script type="text/javascript">
            /* <![CDATA[ */
            var google_conversion_id = 956373091;
            var google_custom_params = window.google_tag_params;
            var google_remarketing_only = true;
            /* ]]> */
        </script>
        <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
        </script>
        <noscript>
        <div style="display:inline;">
            <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/956373091/?value=0&amp;guid=ON&amp;script=0"/>
        </div>
        </noscript>
    </body>
</html>
